<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="http://cdn.bootcss.com/echarts/3.3.2/echarts.min.js"></script>
</head>
<body>
  <div id="chart" style="width: 500px;height:400px;"></div>
</body>
<script type="text/javascript">
  var myChart = echarts.init(document.getElementById('chart'));
  var option = {
    title:{text:"使用ECharts画图表demo1"},
    tooltip:{},
    legend:{data:['销量']},
    xAxis:{data:["T-shirt","skirt","jeans","pants","jack"]},
    yAxis:{},
    series:[{
      name:'销量',
      type:"bar",
      data:[15,6,10,24,40]
    }]
  };
  myChart.setOption(option);
</script>
</html>
